package com.ssm.subject.domain.convert;

import com.ssm.subject.domain.bo.SubjectAnswerBO;
import com.ssm.subject.infra.basic.entity.SubjectRadio;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectRadioConvert {
    SubjectRadioConvert INSTANCE = Mappers.getMapper(SubjectRadioConvert.class);

    //SubjectAnswerBO 转 SubjectRadio (两个类属性名相同即可转)
    SubjectRadio subjectAnswerBoToRadio(SubjectAnswerBO subjectAnswerBO);

    //SubjectRadioList 转 SubjectAnswerBoList
    List<SubjectAnswerBO> subjectRadioListToAnswerBoList(List<SubjectRadio> subjectRadioList);
}
